package day05;

//continue结构的演示
public class ContinueDemo {
    public static void main(String[] args) {
        for (int num = 1; num <= 9; ++num) {
            if (num % 3 == 0) {
                continue;//跳过循环体中剩余的语句而进入下一次循环
            }
            System.out.println(num);
        }

        for (int num = 1; num <= 9; ++num) {
            if (num % 3 != 0) System.out.println(num);
        }

    }
}
